package com.jinly.ryder.manage.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinly.ryder.manage.service.model.AppBuildType;
import com.jinly.ryder.manage.service.model.AppDeployType;
import com.jinly.ryder.manage.service.model.AppLogType;
import com.jinly.ryder.manage.service.model.AppMonitorType;
import com.jinly.ryder.manage.service.model.setting.BuildSetting;
import com.jinly.ryder.manage.service.model.setting.LogSetting;
import com.jinly.ryder.manage.service.model.setting.MonitorSetting;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AppInfoVO {

    private Integer id;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 应用展示名称
     */
    private String appShowName;

    /**
     * 构建类型
     */
    private AppBuildType buildType;

    /**
     * 部署类型
     */
    private AppDeployType deployType;

    /**
     * 监控方式
     */
    private AppMonitorType monitorType;

    /**
     * 日志类型
     */
    private AppLogType logType;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updated;

    /**
     * 构建配置
     */
    private BuildSetting buildSetting;

    /**
     * 日志配置
     */
    private LogSetting logSetting;

    private MonitorSetting monitorSetting;

    private boolean isAdminUser;
}
